<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>FDTree Test</title>
<!-- css -->
<link id="fd_theme" href="../../styles/theme/aristo/theme.css" rel="stylesheet" type="text/css" />
<link href="../../styles/primeui-1.1-min.css" rel="stylesheet" type="text/css" />
<!-- lib -->
<script type="text/javascript" src="../../src/FDLib/FDLib.js"></script>
<script type="text/javascript" src="../../src/JsMap.js"></script>
<!-- app js -->
<script type="text/javascript" src="../theme.js"></script>
<script type="text/javascript" src="city.js"></script>

<style type="text/css">
body{
background-color: white;
}
</style>
</head>
<body>
<div id="menu3" style="border: solid 1px #ccc;width:500px;height: 600px;overflow: auto;"></div>

<script type="text/javascript">
FDLib.setDir('../../src/');

var treeCity;

FDLib.loadJs('FDTree',function() {
	
	treeCity = new FDTree({
		domId:'menu3'
		,data:cityData.rows // 数据详见city.js
		,valueFieldName:'value'
		,textFieldName:'text'
		,childrenFieldName:'items'
		,clickToggle:true
		,highlightHandler:function(node){
			if(node.items && node.items.length > 0){
				return false;
			}
			return true;
		}
	});
});
</script>
</body>
</html>